package com.dongjiantong.farmrecords.dto;

import com.dongjiantong.common.utils.JsonMapper;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.Data;

import java.io.Serializable;
import java.util.Map;

/**
 * 我的 信息统计Dto
 * @author Lee
 * @date 2018/1/19
 */
@Data
public class StatisticalDto implements Serializable {
    private static final ObjectMapper objectMapper = JsonMapper.nonEmptyMapper().getMapper();

    /**
     * 存栏信息
     */
    //实时存栏数
    private Integer realStock;

    //按时间区间获取到的存栏 (出生,卖出,死淘)
    private Map<String,Object> stock;

    /**
     * 生产统计
     */
    //饲料消耗
    private Float feedConsume;

    //兽药次数
    private Integer drugCount;

    //免疫次数
    private Integer immunizationCount;

    /**
     * 采购统计
     */
    //采购总金额
    private Double totalPrice;

    //原料购置
    private Map<String,Object> materialPurchase;

    //疫苗购置
    private Map<String,Object> drugPurchase;

    //药物购置
    private Map<String,Object> vaccinePurchase;

    //引种记录
    private Map<String,Object> introducePurchase;

    //其他购置
    private Map<String,Object> otherPurchase;

}
